﻿using LandManager.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LandManager.Web.Service
{
    public class LandTypeService : IService<landType>
    {
        public bool Add(landType t)
        {
            throw new NotImplementedException();
        }

        public bool Delete(landType t)
        {
            throw new NotImplementedException();
        }

        public bool Edit(landType t)
        {
            throw new NotImplementedException();
        }

        public List<landType> GetList()
        {
            using (DataComDataContext db = new DataComDataContext())
            {
                var q = from c in db.landType
                        select c;
                if (q.Count() > 0)
                    return q.ToList();
                else
                    return null;
            }
        }

        public landType FindByID(int id)
        {
            throw new NotImplementedException();
        }
    }
}